import { ApiProperty, ApiPropertyOptional, PartialType } from '@nestjs/swagger';
import { StyleEntity } from '../entities/style.entity';
import { IsArray, IsOptional, IsString } from 'class-validator';
import { StyleSizeEntity } from '../entities/style-size.entity';

export class CreateStyleDto extends PartialType(StyleEntity) {
  @ApiProperty()
  @IsArray()
  sizes: StyleSizeEntity[];

  @ApiPropertyOptional()
  @IsOptional()
  @IsString()
  copyId: string;
}
